package demologic

import (
	"context"

	"zerorpc/app/ogzero/rpc/demosvc/demosvc"
	"zerorpc/app/ogzero/rpc/demosvc/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type PingPongLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewPingPongLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingPongLogic {
	return &PingPongLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *PingPongLogic) PingPong(in *demosvc.Ping) (*demosvc.Pong, error) {
	// todo: add your logic here and delete this line

	return &demosvc.Pong{}, nil
}
